// reducers/index.js
import { combineReducers } from 'redux' // 利用combineReducers 合并reducers
import { routerReducer } from 'react-router-redux' // 将routerReducer一起合并管理
import cartReduce from './cartReduce'
import loginReduce from './loginReduce'
import { reducer as formReducer } from 'redux-form'

export default combineReducers({
    cartReduce,
    loginReduce,
    routing: routerReducer,
    form: formReducer // form键名不能变
})